$(function () {
    $(".flexslider").flexslider({
        animation: "slide",
        direction: "horizontal",
        animationLoop: true,
        slideshow: true,
        directionNav: false,
        touch: true,
        controlNav: false,
        smoothHeight: true,
        maxItems: 10,
        slideshowSpeed: 3000,
        animationSpeed: 600,
    });

    $("#nav-btn-left").bind('click', function () {
        NativeBinder.newActivityPage(1, null, null, 0);
    });
    $("#nav-btn-right").bind('click', function () {
        var url = $(this).attr("url");

        NativeBinder.newActivityPage(4, url, null, 0);
    });

    $("div[detail]").bind('click', function () {
        var url = $(this).attr("detail");
        NativeBinder.newActivityPage(5, url, null, 0);
    });

});